122. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2021-07-21 10:22:01 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

122.1 Files compared

#LocationFileLast Modified
1/Applications/Ampps/www/Porto v4.0.0/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/htmlheader.phtml2021-04-23 07:11:20 +0000
2/Applications/Ampps/www/Porto v4.0.1/Theme Files/Magento 2.x/Porto Theme/app/design/frontend/Smartwave/porto/Smartwave_Porto/templates/htmlheader.phtml2021-07-20 08:53:26 +0000

122.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged22478
Changed00
Inserted1250
Removed00

122.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

122.4 Active regular expressions

No regular expressions were active.

122.5 Comparison detail

1 <?php 1 <?php
2     $_helper = $this->helper('Smartwave\Porto\Helper\Data'); 2     $_helper = $this->helper('Smartwave\Porto\Helper\Data');
3     $header_type = $this->getConfig('porto_settings/header/header_type'); 3     $header_type = $this->getConfig('porto_settings/header/header_type');
4     $header2_text = $this->getConfig('porto_settings/header/header2_text'); 4     $header2_text = $this->getConfig('porto_settings/header/header2_text');
5     $show_notice = $this->getConfig('porto_settings/general/show_site_notice'); 5     $show_notice = $this->getConfig('porto_settings/general/show_site_notice');
6     if ($show_notice && $show_notice == 1) 6     if ($show_notice && $show_notice == 1)
7         echo $this->getChildHtml("porto_custom_notice"); 7         echo $this->getChildHtml("porto_custom_notice");
8 ?> 8 ?>
9 <?php if($header_type == 10): ?> 9 <?php if($header_type == 10): ?>
10 <div class="position-relative"> 10 <div class="position-relative">
11 <?php endif;?> 11 <?php endif;?>
12 <header class="page-header type<?php echo $header_type; ?>" > 12 <header class="page-header type<?php echo $header_type; ?>" >
13 <?php echo $this->getChildHtml("header_customer_form_login"); ?> 13 <?php echo $this->getChildHtml("header_customer_form_login"); ?>
14 <?php if($header_type == 1): ?> 14 <?php if($header_type == 1): ?>
15   <div class="main-panel-top"> 15   <div class="main-panel-top">
16       <div class="container"> 16       <div class="container">
17           <div class="main-panel-inner"> 17           <div class="main-panel-inner">
18               <div class="panel wrapper"> 18               <div class="panel wrapper">
19                 <div class="header-left"> 19                 <div class="header-left">
20                   <div class="panel header"> 20                   <div class="panel header">
21                       <?php echo $this->getChildHtml("currency"); ?> 21                       <?php echo $this->getChildHtml("currency"); ?>
22                       <?php echo $this->getChildHtml("store_language"); ?> 22                       <?php echo $this->getChildHtml("store_language"); ?>
23                   </div> 23                   </div>
24                 </div> 24                 </div>
25                 <div class="header-right"> 25                 <div class="header-right">
26                   <div class="panel header show-icon-tablet"> 26                   <div class="panel header show-icon-tablet">
27                     <div class="top-links-icon"> 27                     <div class="top-links-icon">
28                       <a href="javascript:;"><?php echo __('Links');?></a> 28                       <a href="javascript:;"><?php echo __('Links');?></a>
29                     </div> 29                     </div>
30                     <?php echo $this->getChildHtml("header.links"); ?> 30                     <?php echo $this->getChildHtml("header.links"); ?>
31                   </div> 31                   </div>
32                   <?php echo $this->getChildHtml("custom_block_top"); ?> 32                   <?php echo $this->getChildHtml("custom_block_top"); ?>
33                 </div> 33                 </div>
34               </div> 34               </div>
35           </div> 35           </div>
36       </div> 36       </div>
37   </div> 37   </div>
38   <div class="header-main"> 38   <div class="header-main">
39     <div class="header content header-row"> 39     <div class="header content header-row">
40       <div class="header-left"> 40       <div class="header-left">
41         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 41         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
42         <?php echo $this->getChildHtml("logo"); ?> 42         <?php echo $this->getChildHtml("logo"); ?>
43       </div> 43       </div>
44       <div class="header-center"> 44       <div class="header-center">
45         <div class="search-area show-icon-tablet"> 45         <div class="search-area show-icon-tablet">
46           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 46           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
47           <?php echo $this->getChildHtml("top.search"); ?> 47           <?php echo $this->getChildHtml("top.search"); ?>
48         </div> 48         </div>
49       </div> 49       </div>
50       <div class="header-right"> 50       <div class="header-right">
51         <div class="header-contact"> 51         <div class="header-contact">
52           <?php echo $this->getChildHtml("custom_block"); ?> 52           <?php echo $this->getChildHtml("custom_block"); ?>
53           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account m-l-xs mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a> 53           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account m-l-xs mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a>
54           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1 mr-lg-2 pr-lg-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 54           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1 mr-lg-2 pr-lg-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
55         </div> 55         </div>
56         <?php echo $this->getChildHtml("minicart"); ?> 56         <?php echo $this->getChildHtml("minicart"); ?>
57       </div> 57       </div>
58     </div> 58     </div>
59   </div> 59   </div>
60   <?php echo $this->getChildHtml("navigation.sections"); ?> 60   <?php echo $this->getChildHtml("navigation.sections"); ?>
61 <?php elseif($header_type == 2): ?> 61 <?php elseif($header_type == 2): ?>
62   <div class="main-panel-top"> 62   <div class="main-panel-top">
63       <div class="container"> 63       <div class="container">
64           <div class="main-panel-inner"> 64           <div class="main-panel-inner">
65               <div class="panel wrapper"> 65               <div class="panel wrapper">
66                 <div class="header-left"> 66                 <div class="header-left">
67                   <?php echo $header2_text;?> 67                   <?php echo $header2_text;?>
68                 </div> 68                 </div>
69                 <div class="header-right"> 69                 <div class="header-right">
70                   <div class="panel header show-icon-tablet"> 70                   <div class="panel header show-icon-tablet">
71                     <div class="top-links-icon"> 71                     <div class="top-links-icon">
72                       <a href="javascript:;"><?php echo __('Links');?></a> 72                       <a href="javascript:;"><?php echo __('Links');?></a>
73                     </div> 73                     </div>
74                     <?php echo $this->getChildHtml("header.links"); ?> 74                     <?php echo $this->getChildHtml("header.links"); ?>
75                   </div> 75                   </div>
76                   <span class="separator"></span> 76                   <span class="separator"></span>
77                   <div class="panel header"> 77                   <div class="panel header">
78                     <?php echo $this->getChildHtml("currency"); ?> 78                     <?php echo $this->getChildHtml("currency"); ?>
79                     <?php echo $this->getChildHtml("store_language"); ?> 79                     <?php echo $this->getChildHtml("store_language"); ?>
80                   </div> 80                   </div>
81                   <?php echo $this->getChildHtml("custom_block_top"); ?> 81                   <?php echo $this->getChildHtml("custom_block_top"); ?>
82                 </div> 82                 </div>
83               </div> 83               </div>
84           </div> 84           </div>
85       </div> 85       </div>
86   </div> 86   </div>
87   <div class="header-main"> 87   <div class="header-main">
88     <div class="header content header-row"> 88     <div class="header content header-row">
89       <div class="header-left"> 89       <div class="header-left">
90         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 90         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
91         <?php echo $this->getChildHtml("logo"); ?> 91         <?php echo $this->getChildHtml("logo"); ?>
92       </div> 92       </div>
93       <div class="header-center"> 93       <div class="header-center">
94         <div class="search-area show-icon-tablet"> 94         <div class="search-area show-icon-tablet">
95           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 95           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
96           <?php echo $this->getChildHtml("top.search"); ?> 96           <?php echo $this->getChildHtml("top.search"); ?>
97         </div> 97         </div>
98       </div> 98       </div>
99       <div class="header-right"> 99       <div class="header-right">
100         <div class="header-contact"> 100         <div class="header-contact">
101           <?php echo $this->getChildHtml("custom_block"); ?> 101           <?php echo $this->getChildHtml("custom_block"); ?>
102           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a> 102           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
103           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 103           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
104         </div> 104         </div>
105         <?php echo $this->getChildHtml("minicart"); ?> 105         <?php echo $this->getChildHtml("minicart"); ?>
106       </div> 106       </div>
107     </div> 107     </div>
108   </div> 108   </div>
109   <?php echo $this->getChildHtml("navigation.sections"); ?> 109   <?php echo $this->getChildHtml("navigation.sections"); ?>
110 <?php elseif($header_type == 3): ?> 110 <?php elseif($header_type == 3): ?>
111   <div class="main-panel-top"> 111   <div class="main-panel-top">
112       <div class="container"> 112       <div class="container">
113           <div class="main-panel-inner"> 113           <div class="main-panel-inner">
114               <div class="panel wrapper"> 114               <div class="panel wrapper">
115                 <div class="header-left"> 115                 <div class="header-left">
116                   <?php echo $header2_text;?> 116                   <?php echo $header2_text;?>
117                 </div> 117                 </div>
118                 <div class="header-right"> 118                 <div class="header-right">
119                   <div class="panel header show-icon-tablet"> 119                   <div class="panel header show-icon-tablet">
120                     <div class="top-links-icon"> 120                     <div class="top-links-icon">
121                       <a href="javascript:;"><?php echo __('Links');?></a> 121                       <a href="javascript:;"><?php echo __('Links');?></a>
122                     </div> 122                     </div>
123                     <?php echo $this->getChildHtml("header.links"); ?> 123                     <?php echo $this->getChildHtml("header.links"); ?>
124                   </div> 124                   </div>
125                   <span class="separator"></span> 125                   <span class="separator"></span>
126                   <div class="panel header"> 126                   <div class="panel header">
127                     <?php echo $this->getChildHtml("currency"); ?> 127                     <?php echo $this->getChildHtml("currency"); ?>
128                     <?php echo $this->getChildHtml("store_language"); ?> 128                     <?php echo $this->getChildHtml("store_language"); ?>
129                   </div> 129                   </div>
130                   <?php echo $this->getChildHtml("custom_block_top"); ?> 130                   <?php echo $this->getChildHtml("custom_block_top"); ?>
131                 </div> 131                 </div>
132               </div> 132               </div>
133           </div> 133           </div>
134       </div> 134       </div>
135   </div> 135   </div>
136   <div class="header-main"> 136   <div class="header-main">
137     <div class="header content header-row"> 137     <div class="header content header-row">
138       <div class="header-left"> 138       <div class="header-left">
139         <?php echo $this->getChildHtml("logo"); ?> 139         <?php echo $this->getChildHtml("logo"); ?>
140         <?php echo $this->getChildHtml("navigation.sections"); ?> 140         <?php echo $this->getChildHtml("navigation.sections"); ?>
141       </div> 141       </div>
142       <div class="header-right"> 142       <div class="header-right">
143         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 143         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
144         <div class="search-area show-icon"> 144         <div class="search-area show-icon">
145           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 145           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
146           <?php echo $this->getChildHtml("top.search"); ?> 146           <?php echo $this->getChildHtml("top.search"); ?>
147         </div> 147         </div>
148         <div class="header-contact"> 148         <div class="header-contact">
149           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a> 149           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
150           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 150           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
151         </div> 151         </div>
152         <?php echo $this->getChildHtml("minicart"); ?> 152         <?php echo $this->getChildHtml("minicart"); ?>
153       </div> 153       </div>
154     </div> 154     </div>
155   </div> 155   </div>
156 <?php elseif($header_type == 4): ?> 156 <?php elseif($header_type == 4): ?>
157   <div class="header-main"> 157   <div class="header-main">
158     <div class="header content header-row"> 158     <div class="header content header-row">
159       <div class="header-left"> 159       <div class="header-left">
160         <?php echo $this->getChildHtml("navigation.sections"); ?> 160         <?php echo $this->getChildHtml("navigation.sections"); ?>
161       </div> 161       </div>
162       <div class="header-center"> 162       <div class="header-center">
163         <?php echo $this->getChildHtml("logo"); ?> 163         <?php echo $this->getChildHtml("logo"); ?>
164       </div> 164       </div>
165       <div class="header-right"> 165       <div class="header-right">
166         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 166         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
167         <div class="panel header"> 167         <div class="panel header">
168           <?php echo $this->getChildHtml("currency"); ?> 168           <?php echo $this->getChildHtml("currency"); ?>
169           <?php echo $this->getChildHtml("store_language"); ?> 169           <?php echo $this->getChildHtml("store_language"); ?>
170         </div> 170         </div>
171         <div class="header-links panel header show-icon"> 171         <div class="header-links panel header show-icon">
172           <div class="top-links-icon"> 172           <div class="top-links-icon">
173             <a href="javascript:;"><?php echo __('Links');?></a> 173             <a href="javascript:;"><?php echo __('Links');?></a>
174           </div> 174           </div>
175           <?php echo $this->getChildHtml("header.links"); ?> 175           <?php echo $this->getChildHtml("header.links"); ?>
176         </div> 176         </div>
177         <div class="header-contact"> 177         <div class="header-contact">
178           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a> 178           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a>
179           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 179           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
180         </div> 180         </div>
181         <div class="search-area show-icon"> 181         <div class="search-area show-icon">
182           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 182           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
183           <?php echo $this->getChildHtml("top.search"); ?> 183           <?php echo $this->getChildHtml("top.search"); ?>
184         </div> 184         </div>
185         <?php echo $this->getChildHtml("minicart"); ?> 185         <?php echo $this->getChildHtml("minicart"); ?>
186       </div> 186       </div>
187     </div> 187     </div>
188   </div> 188   </div>
189 <?php elseif($header_type == 5): ?> 189 <?php elseif($header_type == 5): ?>
190   <div class="main-panel-top"> 190   <div class="main-panel-top">
191       <div class="container"> 191       <div class="container">
192           <div class="main-panel-inner"> 192           <div class="main-panel-inner">
193               <div class="panel wrapper"> 193               <div class="panel wrapper">
194                 <div class="header-left"> 194                 <div class="header-left">
195                   <div class="panel header"> 195                   <div class="panel header">
196                       <?php echo $this->getChildHtml("currency"); ?> 196                       <?php echo $this->getChildHtml("currency"); ?>
197                       <?php echo $this->getChildHtml("store_language"); ?> 197                       <?php echo $this->getChildHtml("store_language"); ?>
198                   </div> 198                   </div>
199                 </div> 199                 </div>
200                 <div class="header-right"> 200                 <div class="header-right">
201                   <div class="panel header show-icon-tablet"> 201                   <div class="panel header show-icon-tablet">
202                     <div class="top-links-icon"> 202                     <div class="top-links-icon">
203                       <a href="javascript:;"><?php echo __('Links');?></a> 203                       <a href="javascript:;"><?php echo __('Links');?></a>
204                     </div> 204                     </div>
205                     <?php echo $this->getChildHtml("header.links"); ?> 205                     <?php echo $this->getChildHtml("header.links"); ?>
206                   </div> 206                   </div>
207                   <?php echo $this->getChildHtml("custom_block_top"); ?> 207                   <?php echo $this->getChildHtml("custom_block_top"); ?>
208                 </div> 208                 </div>
209               </div> 209               </div>
210           </div> 210           </div>
211       </div> 211       </div>
212   </div> 212   </div>
213   <div class="header-main"> 213   <div class="header-main">
214     <div class="header content header-row"> 214     <div class="header content header-row">
215       <div class="header-left"> 215       <div class="header-left">
216         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 216         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
217         <?php echo $this->getChildHtml("logo"); ?> 217         <?php echo $this->getChildHtml("logo"); ?>
218         <?php echo $this->getChildHtml("navigation.sections"); ?> 218         <?php echo $this->getChildHtml("navigation.sections"); ?>
219         <span class="separator"></span> 219         <span class="separator"></span>
220         <div class="search-area show-icon"> 220         <div class="search-area show-icon">
221           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 221           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
222           <?php echo $this->getChildHtml("top.search"); ?> 222           <?php echo $this->getChildHtml("top.search"); ?>
223         </div> 223         </div>
224       </div> 224       </div>
225       <div class="header-right"> 225       <div class="header-right">
226         <div class="header-contact"> 226         <div class="header-contact">
227           <?php echo $this->getChildHtml("custom_block"); ?> 227           <?php echo $this->getChildHtml("custom_block"); ?>
228         </div> 228         </div>
229         <span class="separator"></span> 229         <span class="separator"></span>
230         <?php echo $this->getChildHtml("minicart"); ?> 230         <?php echo $this->getChildHtml("minicart"); ?>
231       </div> 231       </div>
232     </div> 232     </div>
233   </div> 233   </div>
234 <?php elseif($header_type == 6): ?> 234 <?php elseif($header_type == 6): ?>
235   <div class="main-panel-top"> 235   <div class="main-panel-top">
236       <div class="container"> 236       <div class="container">
237           <div class="main-panel-inner"> 237           <div class="main-panel-inner">
238               <div class="panel wrapper"> 238               <div class="panel wrapper">
239                 <div class="header-left"> 239                 <div class="header-left">
240                   <div class="panel header"> 240                   <div class="panel header">
241                     <?php echo $this->getChildHtml("currency"); ?> 241                     <?php echo $this->getChildHtml("currency"); ?>
242                     <?php echo $this->getChildHtml("store_language"); ?> 242                     <?php echo $this->getChildHtml("store_language"); ?>
243                   </div> 243                   </div>
244                 </div> 244                 </div>
245                 <div class="header-right"> 245                 <div class="header-right">
246                   <div class="panel header show-icon-tablet"> 246                   <div class="panel header show-icon-tablet">
247                     <div class="top-links-icon"> 247                     <div class="top-links-icon">
248                       <a href="javascript:;"><?php echo __('Links');?></a> 248                       <a href="javascript:;"><?php echo __('Links');?></a>
249                     </div> 249                     </div>
250                     <?php echo $this->getChildHtml("header.links"); ?> 250                     <?php echo $this->getChildHtml("header.links"); ?>
251                   </div> 251                   </div>
252                   <span class="separator"></span> 252                   <span class="separator"></span>
253                   <?php echo $this->getChildHtml("custom_block_top"); ?> 253                   <?php echo $this->getChildHtml("custom_block_top"); ?>
254                 </div> 254                 </div>
255               </div> 255               </div>
256           </div> 256           </div>
257       </div> 257       </div>
258   </div> 258   </div>
259   <div class="header-main"> 259   <div class="header-main">
260     <div class="header content header-row"> 260     <div class="header content header-row">
261       <div class="header-left"> 261       <div class="header-left">
262         <div class="header-contact"> 262         <div class="header-contact">
263           <?php echo $this->getChildHtml("custom_block"); ?> 263           <?php echo $this->getChildHtml("custom_block"); ?>
264         </div> 264         </div>
265       </div> 265       </div>
266       <div class="header-center"> 266       <div class="header-center">
267         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 267         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
268         <?php echo $this->getChildHtml("logo"); ?> 268         <?php echo $this->getChildHtml("logo"); ?>
269       </div> 269       </div>
270       <div class="header-right"> 270       <div class="header-right">
271         <div class="header-contact"> 271         <div class="header-contact">
272           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a> 272           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
273           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 273           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
274         </div> 274         </div>
275         <div class="search-area show-icon"> 275         <div class="search-area show-icon">
276           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 276           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
277           <?php echo $this->getChildHtml("top.search"); ?> 277           <?php echo $this->getChildHtml("top.search"); ?>
278         </div> 278         </div>
279         <?php echo $this->getChildHtml("minicart"); ?> 279         <?php echo $this->getChildHtml("minicart"); ?>
280       </div> 280       </div>
281     </div> 281     </div>
282   </div> 282   </div>
283   <?php echo $this->getChildHtml("navigation.sections"); ?> 283   <?php echo $this->getChildHtml("navigation.sections"); ?>
284 <?php elseif($header_type == 7): ?> 284 <?php elseif($header_type == 7): ?>
285   <div class="main-panel-top"> 285   <div class="main-panel-top">
286       <div class="container"> 286       <div class="container">
287           <div class="main-panel-inner"> 287           <div class="main-panel-inner">
288               <div class="panel wrapper"> 288               <div class="panel wrapper">
289                 <div class="header-left"> 289                 <div class="header-left">
290                   <div class="panel header"> 290                   <div class="panel header">
291                       <?php echo $this->getChildHtml("currency"); ?> 291                       <?php echo $this->getChildHtml("currency"); ?>
292                       <?php echo $this->getChildHtml("store_language"); ?> 292                       <?php echo $this->getChildHtml("store_language"); ?>
293                   </div> 293                   </div>
294                 </div> 294                 </div>
295                 <div class="header-right"> 295                 <div class="header-right">
296                   <div class="panel header show-icon-tablet"> 296                   <div class="panel header show-icon-tablet">
297                     <div class="top-links-icon"> 297                     <div class="top-links-icon">
298                       <a href="javascript:;"><?php echo __('Links');?></a> 298                       <a href="javascript:;"><?php echo __('Links');?></a>
299                     </div> 299                     </div>
300                     <?php echo $this->getChildHtml("header.links"); ?> 300                     <?php echo $this->getChildHtml("header.links"); ?>
301                   </div> 301                   </div>
302                   <?php echo $this->getChildHtml("custom_block_top"); ?> 302                   <?php echo $this->getChildHtml("custom_block_top"); ?>
303                 </div> 303                 </div>
304               </div> 304               </div>
305           </div> 305           </div>
306       </div> 306       </div>
307   </div> 307   </div>
308   <div class="header-main"> 308   <div class="header-main">
309     <div class="header content header-row"> 309     <div class="header content header-row">
310       <div class="header-left"> 310       <div class="header-left">
311         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 311         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
312         <?php echo $this->getChildHtml("logo"); ?> 312         <?php echo $this->getChildHtml("logo"); ?>
313       </div> 313       </div>
314       <div class="header-center"> 314       <div class="header-center">
315         <div class="search-area show-icon-tablet"> 315         <div class="search-area show-icon-tablet">
316           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 316           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
317           <?php echo $this->getChildHtml("top.search"); ?> 317           <?php echo $this->getChildHtml("top.search"); ?>
318         </div> 318         </div>
319       </div> 319       </div>
320       <div class="header-right"> 320       <div class="header-right">
321         <div class="header-contact"> 321         <div class="header-contact">
322           <?php echo $this->getChildHtml("custom_block"); ?> 322           <?php echo $this->getChildHtml("custom_block"); ?>
323           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account m-l-xs mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a> 323           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account m-l-xs mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a>
324           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1 mr-lg-2 pr-lg-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 324           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1 mr-lg-2 pr-lg-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
325         </div> 325         </div>
326         <?php echo $this->getChildHtml("minicart"); ?> 326         <?php echo $this->getChildHtml("minicart"); ?>
327       </div> 327       </div>
328     </div> 328     </div>
329   </div> 329   </div>
330   <div class="main-menu-wrap"> 330   <div class="main-menu-wrap">
331     <div class="container"> 331     <div class="container">
332       <?php 332       <?php
333           $toggle_text = $this->getConfig('porto_settings/header/toggle_text'); 333           $toggle_text = $this->getConfig('porto_settings/header/toggle_text');
334           $custom_block_id_7 =$this->getConfig('porto_settings/header/static_block_7'); 334           $custom_block_id_7 =$this->getConfig('porto_settings/header/static_block_7');
335       ?> 335       ?>
336       <div class="row"> 336       <div class="row">
337         <div class="col-lg-3 sidebar"> 337         <div class="col-lg-3 sidebar">
338           <div class="drop-menu"> 338           <div class="drop-menu">
339             <a href="javascript:void(0)"> 339             <a href="javascript:void(0)">
340               <?php echo $toggle_text; ?> 340               <?php echo $toggle_text; ?>
341             </a> 341             </a>
342             <?php echo $this->getChildHtml("navigation.sections"); ?> 342             <?php echo $this->getChildHtml("navigation.sections"); ?>
343           </div> 343           </div>
344         </div> 344         </div>
345         <div class="col-lg-9"> 345         <div class="col-lg-9">
346           <?php 346           <?php
347             $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block'); 347             $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
348             if($block) { 348             if($block) {
349                 $block->setBlockId($custom_block_id_7); 349                 $block->setBlockId($custom_block_id_7);
350             } 350             }
351             if($block){ 351             if($block){
352                 echo $block->toHtml(); 352                 echo $block->toHtml();
353             } 353             }
354           ?> 354           ?>
355         </div> 355         </div>
356       </div> 356       </div>
357     </div> 357     </div>
358   </div> 358   </div>
359   <script type="text/javascript"> 359   <script type="text/javascript">
360   require([ 360   require([
361       'jquery' 361       'jquery'
362   ], function ($) { 362   ], function ($) {
363       $(document).ready(function(){ 363       $(document).ready(function(){
364           $(".drop-menu > a").off("click").on("click", function(){ 364           $(".drop-menu > a").off("click").on("click", function(){
365               if($(this).parent().children(".nav-sections").hasClass("visible")) { 365               if($(this).parent().children(".nav-sections").hasClass("visible")) {
366                   $(this).parent().children(".nav-sections").removeClass("visible"); 366                   $(this).parent().children(".nav-sections").removeClass("visible");
367                   $(this).removeClass("active"); 367                   $(this).removeClass("active");
368               } 368               }
369               else { 369               else {
370                   $(this).parent().children(".nav-sections").addClass("visible"); 370                   $(this).parent().children(".nav-sections").addClass("visible");
371                   $(this).addClass("active"); 371                   $(this).addClass("active");
372               } 372               }
373           }); 373           });
374       }); 374       });
375   }); 375   });
376   </script> 376   </script>
377 <?php elseif($header_type == 8): ?> 377 <?php elseif($header_type == 8): ?>
378   <div class="main-panel-top"> 378   <div class="main-panel-top">
379       <div class="container"> 379       <div class="container">
380           <div class="main-panel-inner"> 380           <div class="main-panel-inner">
381               <div class="panel wrapper"> 381               <div class="panel wrapper">
382                 <div class="panel header"> 382                 <div class="panel header">
383                     <?php echo $this->getChildHtml("currency"); ?> 383                     <?php echo $this->getChildHtml("currency"); ?>
384                     <?php echo $this->getChildHtml("store_language"); ?> 384                     <?php echo $this->getChildHtml("store_language"); ?>
385                 </div> 385                 </div>
386                 <div class="header-cart"> 386                 <div class="header-cart">
387                   <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a> 387                   <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
388                   <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 388                   <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
389                   <?php echo $this->getChildHtml("minicart"); ?> 389                   <?php echo $this->getChildHtml("minicart"); ?>
390                 </div> 390                 </div>
391               </div> 391               </div>
392           </div> 392           </div>
393       </div> 393       </div>
394   </div> 394   </div>
395   <div class="header-main"> 395   <div class="header-main">
396     <div class="header content header-row"> 396     <div class="header content header-row">
397       <div class="header-left"> 397       <div class="header-left">
398         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 398         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
399         <?php echo $this->getChildHtml("logo"); ?> 399         <?php echo $this->getChildHtml("logo"); ?>
400         <div class="search-area show-icon-tablet"> 400         <div class="search-area show-icon-tablet">
401           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 401           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
402           <?php echo $this->getChildHtml("top.search"); ?> 402           <?php echo $this->getChildHtml("top.search"); ?>
403         </div> 403         </div>
404       </div> 404       </div>
405       <div class="header-center"> 405       <div class="header-center">
406         <?php echo $this->getChildHtml("navigation.sections"); ?> 406         <?php echo $this->getChildHtml("navigation.sections"); ?>
407         <div class="panel header"> 407         <div class="panel header">
408           <div class="top-links-icon"> 408           <div class="top-links-icon">
409             <a href="javascript:;"><?php echo __('Links');?></a> 409             <a href="javascript:;"><?php echo __('Links');?></a>
410           </div> 410           </div>
411           <?php echo $this->getChildHtml("header.links"); ?> 411           <?php echo $this->getChildHtml("header.links"); ?>
412         </div> 412         </div>
413       </div> 413       </div>
414       <div class="header-right"> 414       <div class="header-right">
415         <?php echo $this->getChildHtml("custom_block"); ?> 415         <?php echo $this->getChildHtml("custom_block"); ?>
416       </div> 416       </div>
417     </div> 417     </div>
418   </div> 418   </div>
419   <script type="text/javascript"> 419   <script type="text/javascript">
420   require([ 420   require([
421       'jquery' 421       'jquery'
422   ], function ($) { 422   ], function ($) {
423     if($(".page-header.type8").length > 0) { 423     if($(".page-header.type8").length > 0) {
424       $(".page-wrapper").addClass('side-nav'); 424       $(".page-wrapper").addClass('side-nav');
425     } 425     }
426     $(window).scroll(function() { 426     $(window).scroll(function() {
427       var side_header_height = $(".page-header.type8").innerHeight(); 427       var side_header_height = $(".page-header.type8").innerHeight();
428       var window_height = $(window).height(); 428       var window_height = $(window).height();
429       if(side_header_height-window_height<$(window).scrollTop()){ 429       if(side_header_height-window_height<$(window).scrollTop()){
430         if(!$(".page-header.type8").hasClass("fixed-bottom")) { 430         if(!$(".page-header.type8").hasClass("fixed-bottom")) {
431           $(".page-header.type8").addClass("fixed-bottom"); 431           $(".page-header.type8").addClass("fixed-bottom");
432         } 432         }
433       } 433       }
434       if(side_header_height-window_height>=$(window).scrollTop()){ 434       if(side_header_height-window_height>=$(window).scrollTop()){
435         if($(".page-header.type8").hasClass("fixed-bottom")) { 435         if($(".page-header.type8").hasClass("fixed-bottom")) {
436           $(".page-header.type8").removeClass("fixed-bottom"); 436           $(".page-header.type8").removeClass("fixed-bottom");
437         } 437         }
438       } 438       }
439       if($(".page-wrapper.side-nav > .breadcrumbs").length) { 439       if($(".page-wrapper.side-nav > .breadcrumbs").length) {
440         if(!$(".page-wrapper.side-nav > .breadcrumbs").hasClass("fixed-position")) { 440         if(!$(".page-wrapper.side-nav > .breadcrumbs").hasClass("fixed-position")) {
441           breadcrumb_pos_top = $(".page-wrapper.side-nav > .breadcrumbs").offset().top; 441           breadcrumb_pos_top = $(".page-wrapper.side-nav > .breadcrumbs").offset().top;
442           if($(".page-wrapper.side-nav > .breadcrumbs").offset().top<$(window).scrollTop()) { 442           if($(".page-wrapper.side-nav > .breadcrumbs").offset().top<$(window).scrollTop()) {
443             $(".page-wrapper.side-nav > .breadcrumbs").addClass("fixed-position"); 443             $(".page-wrapper.side-nav > .breadcrumbs").addClass("fixed-position");
444           } 444           }
445         } 445         }
446         else { 446         else {
447           if($(window).scrollTop()<=1) { 447           if($(window).scrollTop()<=1) {
448             $(".page-wrapper.side-nav > .breadcrumbs").removeClass("fixed-position"); 448             $(".page-wrapper.side-nav > .breadcrumbs").removeClass("fixed-position");
449           } 449           }
450         } 450         }
451       } 451       }
452     }); 452     });
453     if($(window).width() <= 991){ 453     if($(window).width() <= 991){
454       if($('.page-header.type8 .header-cart .minicart-wrapper')){ 454       if($('.page-header.type8 .header-cart .minicart-wrapper')){
455         $('.page-header.type8 .header-cart .minicart-wrapper').after('<div class="minicart-place hide"></div>'); 455         $('.page-header.type8 .header-cart .minicart-wrapper').after('<div class="minicart-place hide"></div>');
456         var minicart = $('.page-header.type8 .header-cart .minicart-wrapper').detach(); 456         var minicart = $('.page-header.type8 .header-cart .minicart-wrapper').detach();
457         $('.page-header.type8 .header-main .header-right').append(minicart); 457         $('.page-header.type8 .header-main .header-right').append(minicart);
458       } 458       }
459     } 459     }
460     $(window).resize(function(){ 460     $(window).resize(function(){
461       var b_w = $(window).width(); 461       var b_w = $(window).width();
462       if(b_w <= 991){ 462       if(b_w <= 991){
463         if($('.page-header.type8 .header-cart .minicart-wrapper')){ 463         if($('.page-header.type8 .header-cart .minicart-wrapper')){
464           $('.page-header.type8 .header-cart .minicart-wrapper').after('<div class="minicart-place hide"></div>'); 464           $('.page-header.type8 .header-cart .minicart-wrapper').after('<div class="minicart-place hide"></div>');
465           var minicart = $('.page-header.type8 .header-cart .minicart-wrapper').detach(); 465           var minicart = $('.page-header.type8 .header-cart .minicart-wrapper').detach();
466           $('.page-header.type8 .header-main .header-right').append(minicart); 466           $('.page-header.type8 .header-main .header-right').append(minicart);
467         } 467         }
468       } 468       }
469       if(b_w > 991){ 469       if(b_w > 991){
470         if($('.page-header.type8 .header-main .header-right .minicart-wrapper').length > 0) { 470         if($('.page-header.type8 .header-main .header-right .minicart-wrapper').length > 0) {
471           var minicart; 471           var minicart;
472           minicart = $('.page-header.type8 .header-main .header-right .minicart-wrapper').detach(); 472           minicart = $('.page-header.type8 .header-main .header-right .minicart-wrapper').detach();
473           $('.minicart-place').after(minicart); 473           $('.minicart-place').after(minicart);
474           $('.minicart-place').remove(); 474           $('.minicart-place').remove();
475           $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide"); 475           $('.page-header .minicart-wrapper-moved').addClass("minicart-wrapper").removeClass("minicart-wrapper-moved").removeClass("hide");
476         } 476         }
477       } 477       }
478     }); 478     });
479   }); 479   });
480 </script> 480 </script>
481 <?php elseif($header_type == 9): ?> 481 <?php elseif($header_type == 9): ?>
482   <div class="main-panel-top"> 482   <div class="main-panel-top">
483       <div class="container"> 483       <div class="container">
484           <div class="main-panel-inner"> 484           <div class="main-panel-inner">
485               <div class="panel wrapper"> 485               <div class="panel wrapper">
486                 <div class="header-left"> 486                 <div class="header-left">
487                   <?php echo $this->getChildHtml("custom_block_top"); ?> 487                   <?php echo $this->getChildHtml("custom_block_top"); ?>
488                 </div> 488                 </div>
489                 <div class="header-right"> 489                 <div class="header-right">
490                   <?php echo $this->getChildHtml("navigation.sections"); ?> 490                   <?php echo $this->getChildHtml("navigation.sections"); ?>
491                   <?php echo $this->getChildHtml("currency"); ?> 491                   <?php echo $this->getChildHtml("currency"); ?>
492                   <?php echo $this->getChildHtml("store_language"); ?> 492                   <?php echo $this->getChildHtml("store_language"); ?>
493                 </div> 493                 </div>
494               </div> 494               </div>
495           </div> 495           </div>
496       </div> 496       </div>
497   </div> 497   </div>
498   <div class="header-main"> 498   <div class="header-main">
499     <div class="header content header-row"> 499     <div class="header content header-row">
500       <div class="header-left"> 500       <div class="header-left">
501         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 501         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
502         <?php echo $this->getChildHtml("logo"); ?> 502         <?php echo $this->getChildHtml("logo"); ?>
503       </div> 503       </div>
504       <div class="header-right"> 504       <div class="header-right">
505         <div class="search-area show-icon-tablet"> 505         <div class="search-area show-icon-tablet">
506           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 506           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
507           <?php echo $this->getChildHtml("top.search"); ?> 507           <?php echo $this->getChildHtml("top.search"); ?>
508         </div> 508         </div>
509         <div class="panel header my-account show-icon ml-lg-4 mr-1"> 509         <div class="panel header my-account show-icon ml-lg-4 mr-1">
510           <div class="top-links-icon"> 510           <div class="top-links-icon">
511             <a href="javascript:;"><i class="porto-icon-user-2"></i></a> 511             <a href="javascript:;"><i class="porto-icon-user-2"></i></a>
512           </div> 512           </div>
513           <?php echo $this->getChildHtml("header.links"); ?> 513           <?php echo $this->getChildHtml("header.links"); ?>
514         </div> 514         </div>
515         <span class="separator"></span> 515         <span class="separator"></span>
516         <div class="header-contact mr-1"> 516         <div class="header-contact mr-1">
517           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 517           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
518         </div> 518         </div>
519         <span class="separator"></span> 519         <span class="separator"></span>
520         <?php echo $this->getChildHtml("minicart"); ?> 520         <?php echo $this->getChildHtml("minicart"); ?>
521       </div> 521       </div>
522     </div> 522     </div>
523   </div> 523   </div>
524 <?php elseif($header_type == 10): ?> 524 <?php elseif($header_type == 10): ?>
525   <div class="main-panel-top"> 525   <div class="main-panel-top">
526       <div class="container"> 526       <div class="container">
527           <div class="main-panel-inner"> 527           <div class="main-panel-inner">
528               <div class="panel wrapper"> 528               <div class="panel wrapper">
529                 <div class="header-left"> 529                 <div class="header-left">
530                   <div class="panel header"> 530                   <div class="panel header">
531                       <?php echo $this->getChildHtml("currency"); ?> 531                       <?php echo $this->getChildHtml("currency"); ?>
532                       <?php echo $this->getChildHtml("store_language"); ?> 532                       <?php echo $this->getChildHtml("store_language"); ?>
533                   </div> 533                   </div>
534                 </div> 534                 </div>
535                 <div class="header-right"> 535                 <div class="header-right">
536                   <div class="panel header show-icon-tablet"> 536                   <div class="panel header show-icon-tablet">
537                     <div class="top-links-icon"> 537                     <div class="top-links-icon">
538                       <a href="javascript:;"><?php echo __('Links');?></a> 538                       <a href="javascript:;"><?php echo __('Links');?></a>
539                     </div> 539                     </div>
540                     <?php echo $this->getChildHtml("header.links"); ?> 540                     <?php echo $this->getChildHtml("header.links"); ?>
541                   </div> 541                   </div>
542                   <?php echo $this->getChildHtml("custom_block_top"); ?> 542                   <?php echo $this->getChildHtml("custom_block_top"); ?>
543                 </div> 543                 </div>
544               </div> 544               </div>
545           </div> 545           </div>
546       </div> 546       </div>
547   </div> 547   </div>
548   <div class="header-main"> 548   <div class="header-main">
549     <div class="header content header-row"> 549     <div class="header content header-row">
550       <div class="header-left"> 550       <div class="header-left">
551         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 551         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
552         <?php echo $this->getChildHtml("logo"); ?> 552         <?php echo $this->getChildHtml("logo"); ?>
553         <?php echo $this->getChildHtml("navigation.sections"); ?> 553         <?php echo $this->getChildHtml("navigation.sections"); ?>
554       </div> 554       </div>
555       <div class="header-right"> 555       <div class="header-right">
556         <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a> 556         <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
557         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="my-wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 557         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="my-wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
558         <div class="search-area show-icon"> 558         <div class="search-area show-icon">
559           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 559           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
560           <?php echo $this->getChildHtml("top.search"); ?> 560           <?php echo $this->getChildHtml("top.search"); ?>
561         </div> 561         </div>
562         <?php echo $this->getChildHtml("minicart"); ?> 562         <?php echo $this->getChildHtml("minicart"); ?>
563       </div> 563       </div>
564     </div> 564     </div>
565 </div> 565 </div>
566 <?php elseif($header_type == 11): ?> 566 <?php elseif($header_type == 11): ?>
567   <div class="main-panel-top"> 567   <div class="main-panel-top">
568       <div class="container"> 568       <div class="container">
569           <div class="main-panel-inner"> 569           <div class="main-panel-inner">
570               <div class="panel wrapper"> 570               <div class="panel wrapper">
571                 <div class="header-left"> 571                 <div class="header-left">
572                   <?php echo $this->getChildHtml("custom_block_top"); ?> 572                   <?php echo $this->getChildHtml("custom_block_top"); ?>
573                 </div> 573                 </div>
574                 <div class="header-right"> 574                 <div class="header-right">
575                   <?php echo $this->getChildHtml("custom_block"); ?> 575                   <?php echo $this->getChildHtml("custom_block"); ?>
576                   <?php echo $this->getChildHtml("currency"); ?> 576                   <?php echo $this->getChildHtml("currency"); ?>
577                   <?php echo $this->getChildHtml("store_language"); ?> 577                   <?php echo $this->getChildHtml("store_language"); ?>
578                 </div> 578                 </div>
579               </div> 579               </div>
580           </div> 580           </div>
581       </div> 581       </div>
582   </div> 582   </div>
583   <div class="header-main"> 583   <div class="header-main">
584     <div class="header content header-row"> 584     <div class="header content header-row">
585       <div class="header-left"> 585       <div class="header-left">
586         <?php echo $this->getChildHtml("logo"); ?> 586         <?php echo $this->getChildHtml("logo"); ?>
587       </div> 587       </div>
588       <div class="header-right"> 588       <div class="header-right">
589         <div class="porto-popup-menu"> 589         <div class="porto-popup-menu">
590           <button class="hamburguer-btn"> 590           <button class="hamburguer-btn">
591             <span class="hamburguer"> 591             <span class="hamburguer">
592               <span></span> 592               <span></span>
593               <span></span> 593               <span></span>
594               <span></span> 594               <span></span>
595             </span> 595             </span>
596             <span class="close"><span></span><span></span></span> 596             <span class="close"><span></span><span></span></span>
597           </button> 597           </button>
598           <?php echo $this->getChildHtml("navigation.sections"); ?> 598           <?php echo $this->getChildHtml("navigation.sections"); ?>
599         </div> 599         </div>
600         <span class="separator"></span> 600         <span class="separator"></span>
601         <div class="search-area show-icon"> 601         <div class="search-area show-icon">
602           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 602           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
603           <?php echo $this->getChildHtml("top.search"); ?> 603           <?php echo $this->getChildHtml("top.search"); ?>
604         </div> 604         </div>
605         <span class="separator"></span> 605         <span class="separator"></span>
606         <div class="panel header my-account show-icon px-sm-1"> 606         <div class="panel header my-account show-icon px-sm-1">
607           <div class="top-links-icon"> 607           <div class="top-links-icon">
608             <a href="javascript:;"><i class="porto-icon-user-2"></i></a> 608             <a href="javascript:;"><i class="porto-icon-user-2"></i></a>
609           </div> 609           </div>
610           <?php echo $this->getChildHtml("header.links"); ?> 610           <?php echo $this->getChildHtml("header.links"); ?>
611         </div> 611         </div>
612         <span class="separator"></span> 612         <span class="separator"></span>
613         <div class="header-contact mr-1"> 613         <div class="header-contact mr-1">
614           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 614           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
615         </div> 615         </div>
616         <span class="separator"></span> 616         <span class="separator"></span>
617         <?php echo $this->getChildHtml("minicart"); ?> 617         <?php echo $this->getChildHtml("minicart"); ?>
618       </div> 618       </div>
619     </div> 619     </div>
620   </div> 620   </div>
621   <script type="text/javascript"> 621   <script type="text/javascript">
622   require([ 622   require([
623       'jquery' 623       'jquery'
624   ], function ($) { 624   ], function ($) {
625     $('.porto-popup-menu .hamburguer-btn').on('click', function(e) { 625     $('.porto-popup-menu .hamburguer-btn').on('click', function(e) {
626       e.preventDefault(); 626       e.preventDefault();
627       var $this = $(this); 627       var $this = $(this);
628       if ($('.porto-popup-menu-spacer').length) { 628       if ($('.porto-popup-menu-spacer').length) {
629         $('.porto-popup-menu-spacer').remove(); 629         $('.porto-popup-menu-spacer').remove();
630       } else { 630       } else {
631         $('<div class="porto-popup-menu-spacer"></div>').insertBefore($this.parent()); 631         $('<div class="porto-popup-menu-spacer"></div>').insertBefore($this.parent());
632         $('.porto-popup-menu-spacer').width($this.parent().width()); 632         $('.porto-popup-menu-spacer').width($this.parent().width());
633       } 633       }
634       $this.parent().toggleClass('opened'); 634       $this.parent().toggleClass('opened');
635       $this.toggleClass('active'); 635       $this.toggleClass('active');
636     }); 636     });
637     $('.porto-popup-menu .navigation li.parent > a').on('click', function(e) { 637     $('.porto-popup-menu .navigation li.parent > a').on('click', function(e) {
638       e.preventDefault(); 638       e.preventDefault();
639       $(this).parent().siblings('li.parent.opened').removeClass('opened'); 639       $(this).parent().siblings('li.parent.opened').removeClass('opened');
640       $(this).parent().toggleClass('opened'); 640       $(this).parent().toggleClass('opened');
641     }); 641     });
642   }); 642   });
643 </script> 643 </script>
644 <?php elseif($header_type == 12): ?> 644 <?php elseif($header_type == 12): ?>
645   <div class="main-panel-top"> 645   <div class="main-panel-top">
646       <div class="container"> 646       <div class="container">
647           <div class="main-panel-inner"> 647           <div class="main-panel-inner">
648               <div class="panel wrapper"> 648               <div class="panel wrapper">
649                 <div class="header-left"> 649                 <div class="header-left">
650                   <div class="panel header"> 650                   <div class="panel header">
651                       <?php echo $this->getChildHtml("currency"); ?> 651                       <?php echo $this->getChildHtml("currency"); ?>
652                       <?php echo $this->getChildHtml("store_language"); ?> 652                       <?php echo $this->getChildHtml("store_language"); ?>
653                   </div> 653                   </div>
654                   <span class="separator"></span> 654                   <span class="separator"></span>
655                   <?php echo $this->getChildHtml("custom_block_top"); ?> 655                   <?php echo $this->getChildHtml("custom_block_top"); ?>
656                 </div> 656                 </div>
657                 <div class="header-right"> 657                 <div class="header-right">
658                   <?php echo $this->getChildHtml("custom_block"); ?> 658                   <?php echo $this->getChildHtml("custom_block"); ?>
659                   <span class="separator"></span> 659                   <span class="separator"></span>
660                   <div class="search-area show-icon"> 660                   <div class="search-area show-icon">
661                     <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 661                     <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
662                     <?php echo $this->getChildHtml("top.search"); ?> 662                     <?php echo $this->getChildHtml("top.search"); ?>
663                   </div> 663                   </div>
664                   <div class="panel header show-icon"> 664                   <div class="panel header show-icon">
665                     <div class="top-links-icon"> 665                     <div class="top-links-icon">
666                       <a href="javascript:;"><i class="porto-icon-user-2"></i></a> 666                       <a href="javascript:;"><i class="porto-icon-user-2"></i></a>
667                     </div> 667                     </div>
668                     <?php echo $this->getChildHtml("header.links"); ?> 668                     <?php echo $this->getChildHtml("header.links"); ?>
669                   </div> 669                   </div>
670                   <div class="header-contact"> 670                   <div class="header-contact">
671                     <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 671                     <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
672                   </div> 672                   </div>
673                   <?php echo $this->getChildHtml("minicart"); ?> 673                   <?php echo $this->getChildHtml("minicart"); ?>
674                 </div> 674                 </div>
675               </div> 675               </div>
676           </div> 676           </div>
677       </div> 677       </div>
678   </div> 678   </div>
679   <div class="header-main"> 679   <div class="header-main">
680     <div class="header content header-row"> 680     <div class="header content header-row">
681       <div class="header-left flex-1"> 681       <div class="header-left flex-1">
682         <?php echo $this->getChildHtml("navigation.sections"); ?> 682         <?php echo $this->getChildHtml("navigation.sections"); ?>
683       </div> 683       </div>
684       <div class="header-center"> 684       <div class="header-center">
685         <?php echo $this->getChildHtml("logo"); ?> 685         <?php echo $this->getChildHtml("logo"); ?>
686       </div> 686       </div>
687       <div class="header-right flex-1"> 687       <div class="header-right flex-1">
688         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 688         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
689       </div> 689       </div>
690     </div> 690     </div>
691   </div> 691   </div>
692 <?php elseif($header_type == 13): ?> 692 <?php elseif($header_type == 13): ?>
693     <div class="main-panel-top"> 693     <div class="main-panel-top">
694         <div class="container"> 694         <div class="container">
695             <div class="main-panel-inner"> 695             <div class="main-panel-inner">
696                 <div class="panel wrapper"> 696                 <div class="panel wrapper">
697                   <div class="header-left"> 697                   <div class="header-left">
698                     <div class="search-area show-icon-tablet"> 698                     <div class="search-area show-icon-tablet">
699                       <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 699                       <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
700                       <?php echo $this->getChildHtml("top.search"); ?> 700                       <?php echo $this->getChildHtml("top.search"); ?>
701                     </div> 701                     </div>
702                   </div> 702                   </div>
703                   <div class="header-right"> 703                   <div class="header-right">
704                     <div class="items-inner d-flex align-items-center"> 704                     <div class="items-inner d-flex align-items-center">
705                       <div class="panel header"> 705                       <div class="panel header">
706                           <?php echo $this->getChildHtml("currency"); ?> 706                           <?php echo $this->getChildHtml("currency"); ?>
707                           <?php echo $this->getChildHtml("store_language"); ?> 707                           <?php echo $this->getChildHtml("store_language"); ?>
708                       </div> 708                       </div>
709                       <?php echo $this->getChildHtml("custom_block_top"); ?> 709                       <?php echo $this->getChildHtml("custom_block_top"); ?>
710                       <div class="panel header show-icon"> 710                       <div class="panel header show-icon">
711                         <div class="top-links-icon"> 711                         <div class="top-links-icon">
712                           <a href="javascript:;"><i class="porto-icon-user-2"></i></a> 712                           <a href="javascript:;"><i class="porto-icon-user-2"></i></a>
713                         </div> 713                         </div>
714                         <?php echo $this->getChildHtml("header.links"); ?> 714                         <?php echo $this->getChildHtml("header.links"); ?>
715                       </div> 715                       </div>
716                       <div class="header-contact"> 716                       <div class="header-contact">
717                         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 717                         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
718                       </div> 718                       </div>
719                       <?php echo $this->getChildHtml("minicart"); ?> 719                       <?php echo $this->getChildHtml("minicart"); ?>
720                     </div> 720                     </div>
721                   </div> 721                   </div>
722                 </div> 722                 </div>
723             </div> 723             </div>
724         </div> 724         </div>
725     </div> 725     </div>
726     <div class="header-main"> 726     <div class="header-main">
727       <div class="header content header-row"> 727       <div class="header content header-row">
728         <div class="header-left flex-1"> 728         <div class="header-left flex-1">
729           <?php echo $this->getChildHtml("navigation.sections"); ?> 729           <?php echo $this->getChildHtml("navigation.sections"); ?>
730         </div> 730         </div>
731         <div class="header-center"> 731         <div class="header-center">
732           <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 732           <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
733           <?php echo $this->getChildHtml("logo"); ?> 733           <?php echo $this->getChildHtml("logo"); ?>
734         </div> 734         </div>
735         <div class="header-right d-flex flex-1"></div> 735         <div class="header-right d-flex flex-1"></div>
736       </div> 736       </div>
737     </div> 737     </div>
738     <script type="text/javascript"> 738     <script type="text/javascript">
739     require([ 739     require([
740         'jquery' 740         'jquery'
741     ], function ($) { 741     ], function ($) {
742       if($(window).width() <= 991){ 742       if($(window).width() <= 991){
743         if($('.page-header.type13 .main-panel-top .header-right .items-inner') && $('.page-header.type13 .main-panel-top .header-left')){ 743         if($('.page-header.type13 .main-panel-top .header-right .items-inner') && $('.page-header.type13 .main-panel-top .header-left')){
744           $('.page-header.type13 .main-panel-top .header-right .items-inner').after('<div class="item-right-place hide"></div>'); 744           $('.page-header.type13 .main-panel-top .header-right .items-inner').after('<div class="item-right-place hide"></div>');
745           $('.page-header.type13 .main-panel-top .header-left .search-area').after('<div class="item-left-place hide"></div>'); 745           $('.page-header.type13 .main-panel-top .header-left .search-area').after('<div class="item-left-place hide"></div>');
746           var items_right = $('.page-header.type13 .main-panel-top .header-right .items-inner').detach(), 746           var items_right = $('.page-header.type13 .main-panel-top .header-right .items-inner').detach(),
747               items_left = $('.page-header.type13 .main-panel-top .header-left .search-area').detach(); 747               items_left = $('.page-header.type13 .main-panel-top .header-left .search-area').detach();
748  748 
749           $('.page-header.type13 .header-main .header-right').append(items_left); 749           $('.page-header.type13 .header-main .header-right').append(items_left);
750           $('.page-header.type13 .header-main .header-right').append(items_right); 750           $('.page-header.type13 .header-main .header-right').append(items_right);
751         } 751         }
752       } 752       }
753       $(window).resize(function(){ 753       $(window).resize(function(){
754         var b_w = $(window).width(); 754         var b_w = $(window).width();
755         if(b_w <= 991){ 755         if(b_w <= 991){
756           if($('.page-header.type13 .main-panel-top .header-right .items-inner') && $('.page-header.type13 .main-panel-top .header-left')){ 756           if($('.page-header.type13 .main-panel-top .header-right .items-inner') && $('.page-header.type13 .main-panel-top .header-left')){
757             $('.page-header.type13 .main-panel-top .header-right .items-inner').after('<div class="item-right-place hide"></div>'); 757             $('.page-header.type13 .main-panel-top .header-right .items-inner').after('<div class="item-right-place hide"></div>');
758             $('.page-header.type13 .main-panel-top .header-left .search-area').after('<div class="item-left-place hide"></div>'); 758             $('.page-header.type13 .main-panel-top .header-left .search-area').after('<div class="item-left-place hide"></div>');
759             var items_right = $('.page-header.type13 .main-panel-top .header-right .items-inner').detach(), 759             var items_right = $('.page-header.type13 .main-panel-top .header-right .items-inner').detach(),
760                 items_left = $('.page-header.type13 .main-panel-top .header-left .search-area').detach(); 760                 items_left = $('.page-header.type13 .main-panel-top .header-left .search-area').detach();
761  761 
762             $('.page-header.type13 .header-main .header-right').append(items_left); 762             $('.page-header.type13 .header-main .header-right').append(items_left);
763             $('.page-header.type13 .header-main .header-right').append(items_right); 763             $('.page-header.type13 .header-main .header-right').append(items_right);
764           } 764           }
765         } 765         }
766         if(b_w > 991){ 766         if(b_w > 991){
767           if($('.page-header.type13 .header-main .header-right').length > 0) { 767           if($('.page-header.type13 .header-main .header-right').length > 0) {
768             var items_left = $('.page-header.type13 .header-main .header-right .search-area'), 768             var items_left = $('.page-header.type13 .header-main .header-right .search-area'),
769                 items_right = $('.page-header.type13 .header-main .header-right .items-inner').detach(); 769                 items_right = $('.page-header.type13 .header-main .header-right .items-inner').detach();
770             $('.item-right-place').after(items_right); 770             $('.item-right-place').after(items_right);
771             $('.item-right-place').remove(); 771             $('.item-right-place').remove();
772             $('.item-left-place').after(items_left); 772             $('.item-left-place').after(items_left);
773             $('.item-left-place').remove(); 773             $('.item-left-place').remove();
774           } 774           }
775         } 775         }
776       }); 776       });
777     }); 777     });
778   </script> 778   </script>
779 <?php elseif($header_type == 14): ?> 779 <?php elseif($header_type == 14): ?>
780   <div class="main-panel-top"> 780   <div class="main-panel-top">
781       <div class="container"> 781       <div class="container">
782           <div class="main-panel-inner"> 782           <div class="main-panel-inner">
783               <div class="panel wrapper"> 783               <div class="panel wrapper">
784                 <div class="header-left"> 784                 <div class="header-left">
785  785 
786                 </div> 786                 </div>
787                 <div class="header-right"> 787                 <div class="header-right">
788                   <div class="panel header show-icon-tablet"> 788                   <div class="panel header show-icon-tablet">
789                     <div class="top-links-icon"> 789                     <div class="top-links-icon">
790                       <a href="javascript:;"><?php echo __('Links');?></a> 790                       <a href="javascript:;"><?php echo __('Links');?></a>
791                     </div> 791                     </div>
792                     <?php echo $this->getChildHtml("header.links"); ?> 792                     <?php echo $this->getChildHtml("header.links"); ?>
793                   </div> 793                   </div>
794                   <?php echo $this->getChildHtml("custom_block_top"); ?> 794                   <?php echo $this->getChildHtml("custom_block_top"); ?>
795                 </div> 795                 </div>
796               </div> 796               </div>
797           </div> 797           </div>
798       </div> 798       </div>
799   </div> 799   </div>
800   <div class="header-main"> 800   <div class="header-main">
801     <div class="header content header-row"> 801     <div class="header content header-row">
802       <div class="header-left flex-1"> 802       <div class="header-left flex-1">
803         <div class="panel header"> 803         <div class="panel header">
804             <?php echo $this->getChildHtml("currency"); ?> 804             <?php echo $this->getChildHtml("currency"); ?>
805             <?php echo $this->getChildHtml("store_language"); ?> 805             <?php echo $this->getChildHtml("store_language"); ?>
806         </div> 806         </div>
807       </div> 807       </div>
808       <div class="header-center"> 808       <div class="header-center">
809         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 809         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
810         <?php echo $this->getChildHtml("logo"); ?> 810         <?php echo $this->getChildHtml("logo"); ?>
811       </div> 811       </div>
812       <div class="header-right flex-1"> 812       <div class="header-right flex-1">
813         <div class="header-contact"> 813         <div class="header-contact">
814           <?php echo $this->getChildHtml("custom_block"); ?> 814           <?php echo $this->getChildHtml("custom_block"); ?>
815           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist ml-4" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 815           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist ml-4" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
816         </div> 816         </div>
817         <?php echo $this->getChildHtml("minicart"); ?> 817         <?php echo $this->getChildHtml("minicart"); ?>
818       </div> 818       </div>
819     </div> 819     </div>
820   </div> 820   </div>
821   <div class="header-bottom"> 821   <div class="header-bottom">
822     <div class="header-row"> 822     <div class="header-row">
823       <div class="header-col header-left flex-1"><?php echo $this->getChildHtml("custom_block_menu"); ?></div> 823       <div class="header-col header-left flex-1"><?php echo $this->getChildHtml("custom_block_menu"); ?></div>
824       <div class="header-col header-center flex-1"><?php echo $this->getChildHtml("navigation.sections"); ?></div> 824       <div class="header-col header-center flex-1"><?php echo $this->getChildHtml("navigation.sections"); ?></div>
825       <div class="header-col header-right flex-1"> 825       <div class="header-col header-right flex-1">
826         <div class="search-area show-icon"> 826         <div class="search-area show-icon">
827           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i><span class="search-text"><?php echo __('Search')?></span></span></a> 827           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i><span class="search-text"><?php echo __('Search')?></span></span></a>
828           <?php echo $this->getChildHtml("top.search"); ?> 828           <?php echo $this->getChildHtml("top.search"); ?>
829         </div> 829         </div>
830       </div> 830       </div>
831     </div> 831     </div>
832   </div> 832   </div>
833     <script type="text/javascript"> 833     <script type="text/javascript">
834     require([ 834     require([
835         'jquery' 835         'jquery'
836     ], function ($) { 836     ], function ($) {
837       if($(window).width() <= 991){ 837       if($(window).width() <= 991){
838         if($('.page-header.type14 .header-bottom .header-right .search-area')){ 838         if($('.page-header.type14 .header-bottom .header-right .search-area')){
839           $('.page-header.type14 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>'); 839           $('.page-header.type14 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>');
840           var item_search = $('.page-header.type14 .header-bottom .header-right .search-area').detach(); 840           var item_search = $('.page-header.type14 .header-bottom .header-right .search-area').detach();
841           $('.page-header.type14 .header-main .header-right').append(item_search); 841           $('.page-header.type14 .header-main .header-right').append(item_search);
842         } 842         }
843       } 843       }
844       $(window).resize(function(){ 844       $(window).resize(function(){
845         var b_w = $(window).width(); 845         var b_w = $(window).width();
846         if(b_w <= 991){ 846         if(b_w <= 991){
847           if($('.page-header.type14 .header-bottom .header-right .search-area')){ 847           if($('.page-header.type14 .header-bottom .header-right .search-area')){
848             $('.page-header.type14 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>'); 848             $('.page-header.type14 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>');
849             var item_search = $('.page-header.type14 .header-bottom .header-right .search-area').detach(); 849             var item_search = $('.page-header.type14 .header-bottom .header-right .search-area').detach();
850             $('.page-header.type14 .header-main .header-right').append(item_search); 850             $('.page-header.type14 .header-main .header-right').append(item_search);
851           } 851           }
852         } 852         }
853         if(b_w > 991){ 853         if(b_w > 991){
854           if($('.page-header.type14 .header-main .header-right .search-area').length > 0) { 854           if($('.page-header.type14 .header-main .header-right .search-area').length > 0) {
855             var item_search = $('.page-header.type14 .header-main .header-right .search-area').detach(); 855             var item_search = $('.page-header.type14 .header-main .header-right .search-area').detach();
856             $('.item-search-place').after(item_search); 856             $('.item-search-place').after(item_search);
857             $('.item-search-place').remove(); 857             $('.item-search-place').remove();
858           } 858           }
859         } 859         }
860       }); 860       });
861     }); 861     });
862   </script> 862   </script>
863 <?php elseif($header_type == 15): ?> 863 <?php elseif($header_type == 15): ?>
864   <div class="main-panel-top"> 864   <div class="main-panel-top">
865       <div class="container"> 865       <div class="container">
866           <div class="main-panel-inner"> 866           <div class="main-panel-inner">
867               <div class="panel wrapper"> 867               <div class="panel wrapper">
868                 <div class="header-left"> 868                 <div class="header-left">
869                   <div class="panel header"> 869                   <div class="panel header">
870                     <?php echo $this->getChildHtml("currency"); ?> 870                     <?php echo $this->getChildHtml("currency"); ?>
871                     <?php echo $this->getChildHtml("store_language"); ?> 871                     <?php echo $this->getChildHtml("store_language"); ?>
872                   </div> 872                   </div>
873                 </div> 873                 </div>
874                 <div class="header-right"> 874                 <div class="header-right">
875                   <div class="panel header show-icon-tablet"> 875                   <div class="panel header show-icon-tablet">
876                     <div class="top-links-icon"> 876                     <div class="top-links-icon">
877                       <a href="javascript:;"><?php echo __('Links');?></a> 877                       <a href="javascript:;"><?php echo __('Links');?></a>
878                     </div> 878                     </div>
879                     <?php echo $this->getChildHtml("header.links"); ?> 879                     <?php echo $this->getChildHtml("header.links"); ?>
880                   </div> 880                   </div>
881                   <?php echo $this->getChildHtml("custom_block_top"); ?> 881                   <?php echo $this->getChildHtml("custom_block_top"); ?>
882                 </div> 882                 </div>
883               </div> 883               </div>
884           </div> 884           </div>
885       </div> 885       </div>
886   </div> 886   </div>
887   <div class="header-main"> 887   <div class="header-main">
888     <div class="header content header-row"> 888     <div class="header content header-row">
889       <div class="header-left"> 889       <div class="header-left">
890         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 890         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
891         <?php echo $this->getChildHtml("logo"); ?> 891         <?php echo $this->getChildHtml("logo"); ?>
892         <?php echo $this->getChildHtml("navigation.sections"); ?> 892         <?php echo $this->getChildHtml("navigation.sections"); ?>
893         <?php echo $this->getChildHtml("custom_block_menu"); ?> 893         <?php echo $this->getChildHtml("custom_block_menu"); ?>
894         <span class="separator"></span> 894         <span class="separator"></span>
895       </div> 895       </div>
896       <div class="header-right"> 896       <div class="header-right">
897         <div class="search-area show-icon-tablet-large"> 897         <div class="search-area show-icon-tablet-large">
898           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 898           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
899           <?php echo $this->getChildHtml("top.search"); ?> 899           <?php echo $this->getChildHtml("top.search"); ?>
900         </div> 900         </div>
901         <span class="separator"></span> 901         <span class="separator"></span>
902         <?php echo $this->getChildHtml("custom_block"); ?> 902         <?php echo $this->getChildHtml("custom_block"); ?>
903         <div class="header-contact"> 903         <div class="header-contact">
904           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 904           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
905         </div> 905         </div>
906         <?php echo $this->getChildHtml("minicart"); ?> 906         <?php echo $this->getChildHtml("minicart"); ?>
907       </div> 907       </div>
908     </div> 908     </div>
909   </div> 909   </div>
910 <?php elseif($header_type == 16): ?> 910 <?php elseif($header_type == 16): ?>
911     <div class="main-panel-top"> 911     <div class="main-panel-top">
912         <div class="container"> 912         <div class="container">
913             <div class="main-panel-inner"> 913             <div class="main-panel-inner">
914                 <div class="panel wrapper"> 914                 <div class="panel wrapper">
915                   <div class="header-left"> 915                   <div class="header-left">
916                     <div class="panel header"> 916                     <div class="panel header">
917                         <?php echo $this->getChildHtml("currency"); ?> 917                         <?php echo $this->getChildHtml("currency"); ?>
918                         <?php echo $this->getChildHtml("store_language"); ?> 918                         <?php echo $this->getChildHtml("store_language"); ?>
919                     </div> 919                     </div>
920                   </div> 920                   </div>
921                   <div class="header-right"> 921                   <div class="header-right">
922                     <div class="panel header show-icon-tablet"> 922                     <div class="panel header show-icon-tablet">
923                       <div class="top-links-icon"> 923                       <div class="top-links-icon">
924                         <a href="javascript:;"><?php echo __('Links');?></a> 924                         <a href="javascript:;"><?php echo __('Links');?></a>
925                       </div> 925                       </div>
926                       <?php echo $this->getChildHtml("header.links"); ?> 926                       <?php echo $this->getChildHtml("header.links"); ?>
927                     </div> 927                     </div>
928                     <?php echo $this->getChildHtml("custom_block_top"); ?> 928                     <?php echo $this->getChildHtml("custom_block_top"); ?>
929                   </div> 929                   </div>
930                 </div> 930                 </div>
931             </div> 931             </div>
932         </div> 932         </div>
933     </div> 933     </div>
934     <div class="header-main"> 934     <div class="header-main">
935       <div class="header content header-row"> 935       <div class="header content header-row">
936         <div class="header-col header-left"> 936         <div class="header-col header-left">
937           <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 937           <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
938           <?php echo $this->getChildHtml("logo"); ?> 938           <?php echo $this->getChildHtml("logo"); ?>
939           <div class="search-area show-icon-tablet"> 939           <div class="search-area show-icon-tablet">
940             <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 940             <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
941             <?php echo $this->getChildHtml("top.search"); ?> 941             <?php echo $this->getChildHtml("top.search"); ?>
942           </div> 942           </div>
943         </div> 943         </div>
944         <div class="header-col header-right"> 944         <div class="header-col header-right">
945           <div class="header-contact"> 945           <div class="header-contact">
946             <?php echo $this->getChildHtml("custom_block"); ?> 946             <?php echo $this->getChildHtml("custom_block"); ?>
947             <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 947             <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
948           </div> 948           </div>
949           <?php echo $this->getChildHtml("minicart"); ?> 949           <?php echo $this->getChildHtml("minicart"); ?>
950         </div> 950         </div>
951       </div> 951       </div>
952     </div> 952     </div>
953     <?php echo $this->getChildHtml("navigation.sections"); ?> 953     <?php echo $this->getChildHtml("navigation.sections"); ?>
954 <?php elseif($header_type == 17): ?> 954 <?php elseif($header_type == 17): ?>
955   <div class="main-panel-top"> 955   <div class="main-panel-top">
956       <div class="container"> 956       <div class="container">
957           <div class="main-panel-inner"> 957           <div class="main-panel-inner">
958               <div class="panel wrapper"> 958               <div class="panel wrapper">
959                 <div class="header-left"> 959                 <div class="header-left">
960                   <div class="panel header"> 960                   <div class="panel header">
961                       <?php echo $this->getChildHtml("currency"); ?> 961                       <?php echo $this->getChildHtml("currency"); ?>
962                       <?php echo $this->getChildHtml("store_language"); ?> 962                       <?php echo $this->getChildHtml("store_language"); ?>
963                   </div> 963                   </div>
964                 </div> 964                 </div>
965                 <div class="header-right"> 965                 <div class="header-right">
966                   <div class="panel header show-icon-tablet"> 966                   <div class="panel header show-icon-tablet">
967                     <div class="top-links-icon"> 967                     <div class="top-links-icon">
968                       <a href="javascript:;"><?php echo __('Links');?></a> 968                       <a href="javascript:;"><?php echo __('Links');?></a>
969                     </div> 969                     </div>
970                     <?php echo $this->getChildHtml("header.links"); ?> 970                     <?php echo $this->getChildHtml("header.links"); ?>
971                   </div> 971                   </div>
972                   <?php echo $this->getChildHtml("custom_block_top"); ?> 972                   <?php echo $this->getChildHtml("custom_block_top"); ?>
973                 </div> 973                 </div>
974               </div> 974               </div>
975           </div> 975           </div>
976       </div> 976       </div>
977   </div> 977   </div>
978   <div class="header-main"> 978   <div class="header-main">
979     <div class="header content header-row"> 979     <div class="header content header-row">
980       <div class="header-col header-left"> 980       <div class="header-col header-left">
981         <?php echo $this->getChildHtml("navigation.sections"); ?> 981         <?php echo $this->getChildHtml("navigation.sections"); ?>
982       </div> 982       </div>
983       <div class="header-col header-center"> 983       <div class="header-col header-center">
984         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 984         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
985         <?php echo $this->getChildHtml("logo"); ?> 985         <?php echo $this->getChildHtml("logo"); ?>
986       </div> 986       </div>
987       <div class="header-col header-right"> 987       <div class="header-col header-right">
988         <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a> 988         <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
989         <div class="search-area show-icon"> 989         <div class="search-area show-icon">
990           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 990           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
991           <?php echo $this->getChildHtml("top.search"); ?> 991           <?php echo $this->getChildHtml("top.search"); ?>
992         </div> 992         </div>
993         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-sm-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 993         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-sm-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
994         <?php echo $this->getChildHtml("minicart"); ?> 994         <?php echo $this->getChildHtml("minicart"); ?>
995       </div> 995       </div>
996     </div> 996     </div>
997   </div> 997   </div>
998 <?php elseif($header_type == 18): ?> 998 <?php elseif($header_type == 18): ?>
999   <div class="main-panel-top"> 999   <div class="main-panel-top">
1000       <div class="container"> 1000       <div class="container">
1001           <div class="main-panel-inner"> 1001           <div class="main-panel-inner">
1002               <div class="panel wrapper"> 1002               <div class="panel wrapper">
1003                 <div class="header-left"> 1003                 <div class="header-left">
1004                   <div class="panel header"> 1004                   <div class="panel header">
1005                       <?php echo $this->getChildHtml("currency"); ?> 1005                       <?php echo $this->getChildHtml("currency"); ?>
1006                       <?php echo $this->getChildHtml("store_language"); ?> 1006                       <?php echo $this->getChildHtml("store_language"); ?>
1007                   </div> 1007                   </div>
1008                 </div> 1008                 </div>
1009                 <div class="header-right"> 1009                 <div class="header-right">
1010                   <div class="panel header show-icon-tablet"> 1010                   <div class="panel header show-icon-tablet">
1011                     <div class="top-links-icon"> 1011                     <div class="top-links-icon">
1012                       <a href="javascript:;"><?php echo __('Links');?></a> 1012                       <a href="javascript:;"><?php echo __('Links');?></a>
1013                     </div> 1013                     </div>
1014                     <?php echo $this->getChildHtml("header.links"); ?> 1014                     <?php echo $this->getChildHtml("header.links"); ?>
1015                   </div> 1015                   </div>
1016                   <?php echo $this->getChildHtml("custom_block_top"); ?> 1016                   <?php echo $this->getChildHtml("custom_block_top"); ?>
1017                 </div> 1017                 </div>
1018               </div> 1018               </div>
1019           </div> 1019           </div>
1020       </div> 1020       </div>
1021   </div> 1021   </div>
1022   <div class="header-main"> 1022   <div class="header-main">
1023     <div class="header content header-row"> 1023     <div class="header content header-row">
1024       <div class="header-col header-left"> 1024       <div class="header-col header-left">
1025         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 1025         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
1026         <div class="header-contact"> 1026         <div class="header-contact">
1027         <?php 1027         <?php
1028             $custom_block_id_18 =$this->getConfig('porto_settings/header/static_block_18'); 1028             $custom_block_id_18 =$this->getConfig('porto_settings/header/static_block_18');
1029             $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block'); 1029             $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
1030             if($block) $block->setBlockId($custom_block_id_18); 1030             if($block) $block->setBlockId($custom_block_id_18);
1031             if($block) echo $block->toHtml(); 1031             if($block) echo $block->toHtml();
1032         ?> 1032         ?>
1033         </div> 1033         </div>
1034       </div> 1034       </div>
1035       <div class="header-col header-center"> 1035       <div class="header-col header-center">
1036         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 1036         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
1037         <?php echo $this->getChildHtml("logo"); ?> 1037         <?php echo $this->getChildHtml("logo"); ?>
1038       </div> 1038       </div>
1039       <div class="header-col header-right"> 1039       <div class="header-col header-right">
1040         <?php echo $this->getChildHtml("custom_block"); ?> 1040         <?php echo $this->getChildHtml("custom_block"); ?>
1041         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist ml-lg-4 mr-2" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 1041         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist ml-lg-4 mr-2" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
1042         <?php echo $this->getChildHtml("minicart"); ?> 1042         <?php echo $this->getChildHtml("minicart"); ?>
1043       </div> 1043       </div>
1044     </div> 1044     </div>
1045   </div> 1045   </div>
1046   <div class="header-bottom main-menu-wrap"> 1046   <div class="header-bottom main-menu-wrap">
1047     <div class="header-row container"> 1047     <div class="header-row container">
1048       <div class="header-col header-left"> 1048       <div class="header-col header-left">
1049         <div id="main-toggle-menu" class="closed"> 1049         <div id="main-toggle-menu" class="closed">
1050           <?php 1050           <?php
1051               $toggle_text = $this->getConfig('porto_settings/header/toggle_text_18'); 1051               $toggle_text = $this->getConfig('porto_settings/header/toggle_text_18');
1052               $secondary_menu_18 =$this->getConfig('porto_settings/header/secondary_menu_18'); 1052               $secondary_menu_18 =$this->getConfig('porto_settings/header/secondary_menu_18');
1053           ?> 1053           ?>
1054           <div class="menu-title closed"> 1054           <div class="menu-title closed">
1055             <div class="toggle"></div><?php echo $toggle_text;?> 1055             <div class="toggle"></div><?php echo $toggle_text;?>
1056           </div> 1056           </div>
1057           <div class="toggle-menu-wrap side-nav-wrap" style="display: none;"> 1057           <div class="toggle-menu-wrap side-nav-wrap" style="display: none;">
1058             <?php echo $this->getChildHtml("navigation.sections"); ?> 1058             <?php echo $this->getChildHtml("navigation.sections"); ?>
1059           </div> 1059           </div>
1060         </div> 1060         </div>
1061         <div class="second-menu-block"> 1061         <div class="second-menu-block">
1062           <div class="sections nav-sections"> 1062           <div class="sections nav-sections">
1063             <nav class="navigation sw-megamenu "> 1063             <nav class="navigation sw-megamenu ">
1064               <?php 1064               <?php
1065                   $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block'); 1065                   $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
1066                   if($block) $block->setBlockId($secondary_menu_18); 1066                   if($block) $block->setBlockId($secondary_menu_18);
1067                   if($block) echo $block->toHtml(); 1067                   if($block) echo $block->toHtml();
1068               ?> 1068               ?>
1069             </nav> 1069             </nav>
1070           </div> 1070           </div>
1071         </div> 1071         </div>
1072       </div> 1072       </div>
1073       <div class="header-col header-right"> 1073       <div class="header-col header-right">
1074         <div class="search-area show-icon-tablet"> 1074         <div class="search-area show-icon-tablet">
1075           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 1075           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
1076           <?php echo $this->getChildHtml("top.search"); ?> 1076           <?php echo $this->getChildHtml("top.search"); ?>
1077         </div> 1077         </div>
1078       </div> 1078       </div>
1079     </div> 1079     </div>
1080   </div> 1080   </div>
1081   <script type="text/javascript"> 1081   <script type="text/javascript">
1082     require([ 1082     require([
1083         'jquery' 1083         'jquery'
1084     ], function ($) { 1084     ], function ($) {
1085       if($(window).width() <= 991){ 1085       if($(window).width() <= 991){
1086         if($('.page-header.type18 .header-bottom .header-right .search-area')){ 1086         if($('.page-header.type18 .header-bottom .header-right .search-area')){
1087           $('.page-header.type18 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>'); 1087           $('.page-header.type18 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>');
1088           var item_search = $('.page-header.type18 .header-bottom .header-right .search-area').detach(); 1088           var item_search = $('.page-header.type18 .header-bottom .header-right .search-area').detach();
1089           $('.page-header.type18 .header-main .header-right .custom-block').after(item_search); 1089           $('.page-header.type18 .header-main .header-right .custom-block').after(item_search);
1090         } 1090         }
1091       } 1091       }
1092       $(window).resize(function(){ 1092       $(window).resize(function(){
1093         var b_w = $(window).width(); 1093         var b_w = $(window).width();
1094         if(b_w <= 991){ 1094         if(b_w <= 991){
1095           if($('.page-header.type18 .header-bottom .header-right .search-area')){ 1095           if($('.page-header.type18 .header-bottom .header-right .search-area')){
1096             $('.page-header.type18 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>'); 1096             $('.page-header.type18 .header-bottom .header-right .search-area').after('<div class="item-search-place hide"></div>');
1097             var item_search = $('.page-header.type18 .header-bottom .header-right .search-area').detach(); 1097             var item_search = $('.page-header.type18 .header-bottom .header-right .search-area').detach();
1098             $('.page-header.type18 .header-main .header-right .custom-block').after(item_search); 1098             $('.page-header.type18 .header-main .header-right .custom-block').after(item_search);
1099           } 1099           }
1100         } 1100         }
1101         if(b_w > 991){ 1101         if(b_w > 991){
1102           if($('.page-header.type18 .header-main .header-right .search-area').length > 0) { 1102           if($('.page-header.type18 .header-main .header-right .search-area').length > 0) {
1103             var item_search = $('.page-header.type18 .header-main .header-right .search-area').detach(); 1103             var item_search = $('.page-header.type18 .header-main .header-right .search-area').detach();
1104             $('.item-search-place').after(item_search); 1104             $('.item-search-place').after(item_search);
1105             $('.item-search-place').remove(); 1105             $('.item-search-place').remove();
1106           } 1106           }
1107         } 1107         }
1108       }); 1108       });
1109       $('#main-toggle-menu .menu-title').on('click', function() { 1109       $('#main-toggle-menu .menu-title').on('click', function() {
1110         var $toggle_menu = $(this).parent(); 1110         var $toggle_menu = $(this).parent();
1111         var $this = $(this); 1111         var $this = $(this);
1112         if ($this.hasClass('closed')) { 1112         if ($this.hasClass('closed')) {
1113           $this.removeClass('closed'); 1113           $this.removeClass('closed');
1114           $toggle_menu.removeClass('closed'); 1114           $toggle_menu.removeClass('closed');
1115           $toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400, function() { 1115           $toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400, function() {
1116             $(this).attr('style', '').show(); 1116             $(this).attr('style', '').show();
1117           }); 1117           });
1118           if ($('#main-toggle-menu').length) { 1118           if ($('#main-toggle-menu').length) {
1119             if ($('#main-toggle-menu').hasClass('show-always')) { 1119             if ($('#main-toggle-menu').hasClass('show-always')) {
1120               $('#main-toggle-menu').data('show-always', true); 1120               $('#main-toggle-menu').data('show-always', true);
1121               $('#main-toggle-menu').removeClass('show-always'); 1121               $('#main-toggle-menu').removeClass('show-always');
1122             } 1122             }
1123           } 1123           }
1124         } else { 1124         } else {
1125           scrolled = false; 1125           scrolled = false;
1126           $this.addClass('closed'); 1126           $this.addClass('closed');
1127           $toggle_menu.addClass('closed'); 1127           $toggle_menu.addClass('closed');
1128           $toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400, function() { 1128           $toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400, function() {
1129             $(this).attr('style', '').hide(); 1129             $(this).attr('style', '').hide();
1130           }); 1130           });
1131         } 1131         }
1132       }); 1132       });
1133       $(window).scroll(function(){ 1133       $(window).scroll(function(){
1134         if($(window).width()>=992){ 1134         if($(window).width()>=992){
1135           if(10<$(window).scrollTop()){ 1135           if(10<$(window).scrollTop()){
1136             if (!$('#main-toggle-menu').hasClass('closed')) { 1136             if (!$('#main-toggle-menu').hasClass('closed')) {
1137               $('#main-toggle-menu .menu-title').trigger('click'); 1137               $('#main-toggle-menu .menu-title').trigger('click');
1138             } 1138             }
1139           } 1139           }
1140         } 1140         }
1141       }); 1141       });
1142     }); 1142     });
1143   </script> 1143   </script>
1144 <?php elseif($header_type == 19): ?> 1144 <?php elseif($header_type == 19): ?>
1145   <div class="main-panel-top"> 1145   <div class="main-panel-top">
1146       <div class="container"> 1146       <div class="container">
1147           <div class="main-panel-inner"> 1147           <div class="main-panel-inner">
1148               <div class="panel wrapper"> 1148               <div class="panel wrapper">
1149                 <div class="header-col header-left"> 1149                 <div class="header-col header-left">
1150                   <?php echo $this->getChildHtml("custom_block_top"); ?> 1150                   <?php echo $this->getChildHtml("custom_block_top"); ?>
1151                 </div> 1151                 </div>
1152                 <div class="header-col header-right"> 1152                 <div class="header-col header-right">
1153                   <div class="panel header"> 1153                   <div class="panel header">
1154                       <?php echo $this->getChildHtml("currency"); ?> 1154                       <?php echo $this->getChildHtml("currency"); ?>
1155                       <?php echo $this->getChildHtml("store_language"); ?> 1155                       <?php echo $this->getChildHtml("store_language"); ?>
1156                   </div> 1156                   </div>
1157                 </div> 1157                 </div>
1158               </div> 1158               </div>
1159           </div> 1159           </div>
1160       </div> 1160       </div>
1161   </div> 1161   </div>
1162   <div class="header-main"> 1162   <div class="header-main">
1163     <div class="header content header-row"> 1163     <div class="header content header-row">
1164       <div class="header-col header-left"> 1164       <div class="header-col header-left">
1165         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 1165         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
1166         <?php echo $this->getChildHtml("logo"); ?> 1166         <?php echo $this->getChildHtml("logo"); ?>
1167         <?php echo $this->getChildHtml("navigation.sections"); ?> 1167         <?php echo $this->getChildHtml("navigation.sections"); ?>
1168       </div> 1168       </div>
1169       <div class="header-col header-right"> 1169       <div class="header-col header-right">
1170         <div class="panel header my-account show-icon"> 1170         <div class="panel header my-account show-icon">
1171           <div class="top-links-icon"> 1171           <div class="top-links-icon">
1172             <a href="javascript:;"><i class="porto-icon-user-2"></i></a> 1172             <a href="javascript:;"><i class="porto-icon-user-2"></i></a>
1173           </div> 1173           </div>
1174           <?php echo $this->getChildHtml("header.links"); ?> 1174           <?php echo $this->getChildHtml("header.links"); ?>
1175         </div> 1175         </div>
1176         <div class="search-area show-icon"> 1176         <div class="search-area show-icon">
1177           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 1177           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
1178           <?php echo $this->getChildHtml("top.search"); ?> 1178           <?php echo $this->getChildHtml("top.search"); ?>
1179         </div> 1179         </div>
1180         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-2" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 1180         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-2" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
1181         <?php echo $this->getChildHtml("minicart"); ?> 1181         <?php echo $this->getChildHtml("minicart"); ?>
1182       </div> 1182       </div>
1183     </div> 1183     </div>
1184   </div> 1184   </div>
    1185 <?php elseif($header_type == 20): ?>
    1186   <div class="main-panel-top">
    1187       <div class="container">
    1188           <div class="main-panel-inner">
    1189               <div class="panel wrapper">
    1190                 <div class="header-left">
    1191                   <?php echo $this->getChildHtml("custom_block_top"); ?>
    1192                 </div>
    1193                 <div class="header-right">
    1194                   <div class="panel header show-icon-tablet">
    1195                     <div class="top-links-icon">
    1196                       <a href="javascript:;"><?php echo __('Links');?></a>
    1197                     </div>
    1198                     <?php echo $this->getChildHtml("header.links"); ?>
    1199                   </div>
    1200                   <div class="panel header">
    1201                     <?php echo $this->getChildHtml("currency"); ?>
    1202                     <?php echo $this->getChildHtml("store_language"); ?>
    1203                   </div>
    1204                 </div>
    1205               </div>
    1206           </div>
    1207       </div>
    1208   </div>
    1209   <div class="header-main">
    1210     <div class="header content header-row">
    1211       <div class="header-left">
    1212         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
    1213         <?php echo $this->getChildHtml("logo"); ?>
    1214         <?php echo $this->getChildHtml("navigation.sections"); ?>
    1215       </div>
    1216       <div class="header-right">
    1217         <div class="search-area show-icon">
    1218           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
    1219           <?php echo $this->getChildHtml("top.search"); ?>
    1220         </div>
    1221         <div class="header-contact">
    1222           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account mr-1" title="My Account"><i class="porto-icon-user-2"></i></a>
    1223           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-2" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
    1224         </div>
    1225         <?php echo $this->getChildHtml("minicart"); ?>
    1226       </div>
    1227     </div>
    1228   </div>
    1229 <?php elseif($header_type == 21): ?>
    1230   <div class="main-panel-top">
    1231       <div class="container">
    1232           <div class="main-panel-inner">
    1233               <div class="panel wrapper">
    1234                 <div class="header-left">
    1235                   <?php if($this->getConfig('porto_settings/header/header21_text')) echo $this->getConfig('porto_settings/header/header21_text'); ?>
    1236                 </div>
    1237                 <div class="header-right">
    1238                   <div class="panel header show-icon-tablet">
    1239                     <div class="top-links-icon">
    1240                       <a href="javascript:;"><?php echo __('Links');?></a>
    1241                     </div>
    1242                     <?php echo $this->getChildHtml("header.links"); ?>
    1243                   </div>
    1244                   <?php echo $this->getChildHtml("custom_block_top"); ?>
    1245                 </div>
    1246               </div>
    1247           </div>
    1248       </div>
    1249   </div>
    1250   <div class="header-main">
    1251     <div class="header content header-row">
    1252       <div class="header-left d-none d-lg-block">
    1253         <div class="panel header">
    1254             <?php echo $this->getChildHtml("currency"); ?>
    1255             <?php echo $this->getChildHtml("store_language"); ?>
    1256         </div>
    1257       </div>
    1258       <div class="header-center">
    1259         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
    1260         <?php echo $this->getChildHtml("logo"); ?>
    1261       </div>
    1262       <div class="header-right">
    1263         <div class="search-area show-icon-tablet">
    1264           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
    1265           <?php echo $this->getChildHtml("top.search"); ?>
    1266         </div>
    1267       </div>
    1268     </div>
    1269   </div>
    1270   <div class="header-bottom main-menu-wrap">
    1271     <div class="header-row container">
    1272       <div class="header-col header-left"><?php echo $this->getChildHtml("navigation.sections"); ?></div>
    1273       <div class="header-col header-right">
    1274         <div class="header-inner">
    1275           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
    1276           <?php echo $this->getChildHtml("minicart"); ?>
    1277         </div>
    1278       </div>
    1279     </div>
    1280   </div>
    1281   <script type="text/javascript">
    1282   require([
    1283       'jquery'
    1284   ], function ($) {
    1285     if($(window).width() <= 991){
    1286       if($('.page-header.type21 .header-bottom .header-right .header-inner')){
    1287         $('.page-header.type21 .header-bottom .header-right .header-inner').after('<div class="item-search-place hide"></div>');
    1288         var item_right = $('.page-header.type21 .header-bottom .header-right .header-inner').detach();
    1289         $('.page-header.type21 .header-main .header-right').append(item_right);
    1290       }
    1291     }
    1292     $(window).resize(function(){
    1293       var b_w = $(window).width();
    1294       if(b_w <= 991){
    1295         if($('.page-header.type21 .header-bottom .header-right .header-inner')){
    1296           $('.page-header.type21 .header-bottom .header-right .header-inner').after('<div class="item-search-place hide"></div>');
    1297           var item_right = $('.page-header.type21 .header-bottom .header-right .header-inner').detach();
    1298           $('.page-header.type21 .header-main .header-right').append(item_right);
    1299         }
    1300       }
    1301       if(b_w > 991){
    1302         if($('.page-header.type21 .header-main .header-right .header-inner').length > 0) {
    1303           var item_right = $('.page-header.type21 .header-main .header-right .header-inner').detach();
    1304           $('.item-search-place').after(item_right);
    1305           $('.item-search-place').remove();
    1306         }
    1307       }
    1308     });
    1309   });
    1310 </script>
    1311 <?php elseif($header_type == 22): ?>
    1312 <div class="main-panel-top">
    1313     <div class="container">
    1314         <div class="main-panel-inner">
    1315             <div class="panel wrapper">
    1316               <div class="header-left">
    1317                 <?php echo $this->getConfig('porto_settings/header/header22_text') ? $this->getConfig('porto_settings/header/header22_text') : '';?>
    1318               </div>
    1319               <div class="header-right">
    1320                 <div class="panel header">
    1321                   <?php echo $this->getChildHtml("currency"); ?>
    1322                   <?php echo $this->getChildHtml("store_language"); ?>
    1323                 </div>
    1324                 <span class="separator"></span>
    1325                 <div class="panel header show-icon-tablet">
    1326                   <div class="top-links-icon">
    1327                     <a href="javascript:;"><?php echo __('Links');?></a>
    1328                   </div>
    1329                   <?php echo $this->getChildHtml("header.links"); ?>
    1330                 </div>
    1331                 <span class="separator"></span>
    1332                 <?php echo $this->getChildHtml("custom_block_top"); ?>
    1333               </div>
    1334             </div>
    1335         </div>
    1336     </div>
    1337 </div>
    1338 <div class="header-main">
    1339   <div class="header content header-row">
    1340     <div class="header-left">
    1341       <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
    1342       <?php echo $this->getChildHtml("logo"); ?>
    1343       <div class="search-area show-icon-tablet">
    1344         <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
    1345         <?php echo $this->getChildHtml("top.search"); ?>
    1346       </div>
    1347     </div>
    1348     <div class="header-right">
    1349       <div class="header-contact">
    1350         <?php echo $this->getChildHtml("custom_block"); ?>
    1351         <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
    1352         <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account" title="My Account"><i class="porto-icon-user-2"></i></a>
    1353       </div>
    1354       <?php echo $this->getChildHtml("minicart"); ?>
    1355     </div>
    1356   </div>
    1357 </div>
    1358 <div class="header-bottom main-menu-wrap">
    1359   <div class="header-row container">
    1360     <div class="header-col header-left">
    1361       <?php
    1362           $toggle_text = $this->getConfig('porto_settings/header/toggle_text_22');
    1363           $secondary_menu_22 =$this->getConfig('porto_settings/header/secondary_menu_22');
    1364           $toggle_action = $this->getConfig('porto_settings/header/toggle_action_22');
    1365       ?>
    1366       <div id="main-toggle-menu" class="main-toggle-menu closed<?php if($toggle_action == '2'):?> show-hover<?php endif;?>">
    1367         <div class="menu-title closed">
    1368           <div class="toggle"></div><?php echo $toggle_text;?>
    1369         </div>
    1370         <div class="toggle-menu-wrap side-nav-wrap">
    1371           <?php echo $this->getChildHtml("navigation.sections"); ?>
    1372         </div>
    1373       </div>
    1374       <div class="second-menu-block">
    1375         <div class="sections nav-sections">
    1376           <nav class="navigation sw-megamenu ">
    1377             <?php
    1378                 $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
    1379                 if($block) $block->setBlockId($secondary_menu_22);
    1380                 if($block) echo $block->toHtml();
    1381             ?>
    1382           </nav>
    1383         </div>
    1384       </div>
    1385     </div>
    1386     <div class="header-col header-right">
    1387       <?php
    1388           $custom_block_id_22 =$this->getConfig('porto_settings/header/static_block_22');
    1389           $block = $this->getLayout()->createBlock('Magento\Cms\Block\Block');
    1390           if($block) $block->setBlockId($custom_block_id_22);
    1391           if($block) echo $block->toHtml();
    1392       ?>
    1393     </div>
    1394   </div>
    1395   <script type="text/javascript">
    1396     require([
    1397         'jquery'
    1398     ], function ($) {
    1399       $('#main-toggle-menu:not(.show-hover) .menu-title').on('click', function() {
    1400         var $toggle_menu = $(this).parent();
    1401         var $this = $(this);
    1402         if ($this.hasClass('closed')) {
    1403           $this.removeClass('closed');
    1404           $toggle_menu.removeClass('closed');
    1405           $toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400, function() {
    1406             $(this).attr('style', '').show();
    1407           });
    1408           if ($('#main-toggle-menu').length) {
    1409             if ($('#main-toggle-menu').hasClass('show-always')) {
    1410               $('#main-toggle-menu').data('show-always', true);
    1411               $('#main-toggle-menu').removeClass('show-always');
    1412             }
    1413           }
    1414         } else {
    1415           scrolled = false;
    1416           $this.addClass('closed');
    1417           $toggle_menu.addClass('closed');
    1418           $toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400, function() {
    1419             $(this).attr('style', '').hide();
    1420           });
    1421         }
    1422       });
    1423       $(window).scroll(function(){
    1424         if($(window).width()>=992){
    1425           if(10<$(window).scrollTop()){
    1426             if (!$('#main-toggle-menu').hasClass('closed')) {
    1427               $('#main-toggle-menu .menu-title').trigger('click');
    1428             }
    1429           }
    1430         }
    1431       });
    1432     });
    1433   </script>
    1434 </div>
1185 <?php else: ?> 1435 <?php else: ?>
1186   <div class="main-panel-top"> 1436   <div class="main-panel-top">
1187       <div class="container"> 1437       <div class="container">
1188           <div class="main-panel-inner"> 1438           <div class="main-panel-inner">
1189               <div class="panel wrapper"> 1439               <div class="panel wrapper">
1190                 <div class="header-left"> 1440                 <div class="header-left">
1191                   <div class="panel header"> 1441                   <div class="panel header">
1192                       <?php echo $this->getChildHtml("currency"); ?> 1442                       <?php echo $this->getChildHtml("currency"); ?>
1193                       <?php echo $this->getChildHtml("store_language"); ?> 1443                       <?php echo $this->getChildHtml("store_language"); ?>
1194                   </div> 1444                   </div>
1195                 </div> 1445                 </div>
1196                 <div class="header-right"> 1446                 <div class="header-right">
1197                   <div class="panel header show-icon-tablet"> 1447                   <div class="panel header show-icon-tablet">
1198                     <div class="top-links-icon"> 1448                     <div class="top-links-icon">
1199                       <a href="javascript:;"><?php echo __('Links');?></a> 1449                       <a href="javascript:;"><?php echo __('Links');?></a>
1200                     </div> 1450                     </div>
1201                     <?php echo $this->getChildHtml("header.links"); ?> 1451                     <?php echo $this->getChildHtml("header.links"); ?>
1202                   </div> 1452                   </div>
1203                   <?php echo $this->getChildHtml("custom_block_top"); ?> 1453                   <?php echo $this->getChildHtml("custom_block_top"); ?>
1204                 </div> 1454                 </div>
1205               </div> 1455               </div>
1206           </div> 1456           </div>
1207       </div> 1457       </div>
1208   </div> 1458   </div>
1209   <div class="header-main"> 1459   <div class="header-main">
1210     <div class="header content header-row"> 1460     <div class="header content header-row">
1211       <div class="header-left"> 1461       <div class="header-left">
1212         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span> 1462         <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
1213         <?php echo $this->getChildHtml("logo"); ?> 1463         <?php echo $this->getChildHtml("logo"); ?>
1214       </div> 1464       </div>
1215       <div class="header-center"> 1465       <div class="header-center">
1216         <div class="search-area show-icon-tablet"> 1466         <div class="search-area show-icon-tablet">
1217           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a> 1467           <a href="javascript:void(0);" class="search-toggle-icon"><span><i class="porto-icon-magnifier"></i></span></a>
1218           <?php echo $this->getChildHtml("top.search"); ?> 1468           <?php echo $this->getChildHtml("top.search"); ?>
1219         </div> 1469         </div>
1220       </div> 1470       </div>
1221       <div class="header-right"> 1471       <div class="header-right">
1222         <div class="header-contact"> 1472         <div class="header-contact">
1223           <?php echo $this->getChildHtml("custom_block"); ?> 1473           <?php echo $this->getChildHtml("custom_block"); ?>
1224           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account m-l-xs mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a> 1474           <a href="<?php echo $_helper->getBaseLinkUrl(). 'customer/account/' ?>" class="my-account m-l-xs mr-1 mr-lg-2" title="My Account"><i class="porto-icon-user-2"></i></a>
1225           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1 mr-lg-2 pr-lg-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a> 1475           <a href="<?php echo $_helper->getBaseLinkUrl(). 'wishlist' ?>" class="wishlist mr-1 mr-lg-2 pr-lg-1" title="Wishlist"><i class="porto-icon-wishlist-2"></i></a>
1226         </div> 1476         </div>
1227         <?php echo $this->getChildHtml("minicart"); ?> 1477         <?php echo $this->getChildHtml("minicart"); ?>
1228       </div> 1478       </div>
1229     </div> 1479     </div>
1230   </div> 1480   </div>
1231 <?php endif; ?> 1481 <?php endif; ?>
1232 </header> 1482 </header>
1233 <?php if($header_type == 10): ?> 1483 <?php if($header_type == 10): ?>
1234 </div> 1484 </div>
1235 <?php endif; ?> 1485 <?php endif; ?>
1236 <?php 1486 <?php
1237     if ($show_notice && $show_notice == 2) 1487     if ($show_notice && $show_notice == 2)
1238         echo $this->getChildHtml("porto_custom_notice"); 1488         echo $this->getChildHtml("porto_custom_notice");
1239 ?> 1489 ?>